<?php //$Rev:: 55         $ // DO NOT REMOVE

function auto_addAutorespond(&$obj, $data)
{
    if ($obj->core->utilities->aim_is_admin($data['screenname'])) {
        list($sn, $message) = explode(' ', $data['message_text'], 2);
        $obj->core->buddy->aim_add_autorespond($sn, $message);
    } else {
        $obj->core->utilities->aim_send_im($data['screenname'], 'You are not authorized to the requested command', true);
    }
}

function unauto_removeAutorespond(&$obj, $data)
{
    if ($obj->core->utilities->aim_is_admin($data['screenname'])) {
        $obj->core->buddy->aim_remove_autorespond($data['message_text']);
    } else {
        $obj->core->utilities->aim_send_im($data['screenname'], 'You are not authorized to the requested command', true);
    }
}

?>